//
//  CAIEmptyViewGlobalConfig.m
//  MobileCaiLocal
//
//  Created by 海参 on 2022/5/6.
//  Copyright © 2022 com.Chs. All rights reserved.
//

#import "CAIEmptyViewGlobalConfig.h"
#import "EmptyViewKitTool.h"

@implementation CAIEmptyViewGlobalConfig

+ (instancetype)sharedInstance
{
    static id instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (!instance) {
            instance = [[CAIEmptyViewGlobalConfig alloc] init];
        }
    });
    return instance;
}

- (instancetype)init{
    self = [super init];
    if (self) {
        self.customButtonAppearance = [EmptyCustomCenterButtonAppearance new];
        self.textAppearance = [EmptyTextLabelAppearance new];

        self.failedImage = [EmptyViewKitTool imageNamed:@"empty_reqeustFailure"];
        self.failedTitle = @"加载失败，点击屏幕重新加载";
        self.emptyErrorViewTouchEvent = YES;
        self.showEmptyErrorViewReloadButton = NO;
        self.networkErrorHelpHtmlPath = [[EmptyViewKitTool bundle] pathForResource:@"networkErrorHelp" ofType:@"html"];
    }
    return self;
}

@end
